﻿using System;

namespace RabbitBus
{

    /// <summary>
    /// 发送时间基类
    /// </summary>
    public interface IBusEvent
    {

    }


    /// <summary>
    /// 传递参数
    /// </summary>
    public class BusEvent : IBusEvent
    {
        /// <summary>
        /// 队列名称
        /// </summary>
        public string Queue { get; set; }
    }

    /// <summary>
    /// 消费者基类
    /// </summary>
    public interface IConsumer
    {
    }

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IEventConsumer<in T> : IConsumer
        where T : BusEvent
    {
        void Consume(T eEvent);
    }
}
